package com.demo2do.fms.admin.dao.authority;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.authority.Branch;

/**
 * 
 * @author Ysy
 */
@Dao("hibernate")
public interface BranchDao {
    
    /**
     * @param id
     * @return
     */
    @Query("FROM Branch WHERE disabled = false AND code = :code")
    public Branch load(@Variable("code") String code);

}
